/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bookshop.util;

import javax.faces.application.NavigationHandler;
import javax.faces.context.FacesContext;

/**
 *
 * @author Thibault
 */
public class NavigationHelper {
    
    public static void forward(String url) {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        NavigationHandler myNav = facesContext.getApplication().getNavigationHandler();
        myNav.handleNavigation(facesContext, null, url);
    }
    
}
